﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Users.aspx.cs" Inherits="Admin_Users" Title="Admin ~ Users" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" width="100%">
         <tr>
            <td align="center" style="width:100%">
                <table cellpadding="0" cellspacing="0" width="900">
                   
                    <tr>
                        <td align="left" valign="top">
                            <uc1:Header ID="Header1" runat="server" />
                        </td>
                    </tr>
                                
                    <tr>
                        <td align="center" style="width:100%;">        
                            
                            <table cellpadding="5" cellspacing="0" width="100%"  class="mainTableBkg">
                                
                                <tr>
                                    <td align="left" >
                                        <asp:Label  ID="lblMessage" CssClass="messageLabel" runat="server" Text=""></asp:Label>
                                    </td>                                                                    
                                </tr>
                                
                                <tr>
                                    <td align="left" >
                                        <table style="width: 879px">
                                            <tr>
                                                <td align="left" class="adminHeading ">Users</td>
                                                <td align="right"> <asp:Button ID="btnhome" runat="server" CssClass="button" Text="Home" onclick="btnhome_Click" /> </td>
                                            </tr>
                                        </table>                                    
                                    </td>                                    
                                </tr>
                                                             
                                <tr id="trUser" runat="server">                                
                                    <td align="left">
                                        <table cellpadding="5" cellspacing="0" style="width: 100%">
                                            <tr>
                                                <td valign="top" align="left" style="width: 688px;" >
                                                    <table cellpadding="2" cellspacing="0" width="100%">                                           
                                                        <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                                            <td class='label' style="width: 120px">User Code</td>
                                                            <td><asp:TextBox ID="txtUserCode" runat="server" cssclass='textBox' Width='150px' MaxLength="50"></asp:TextBox></td>
                                                        </tr> 
                                                        <tr class="ashBkg">
                                                            <td class='label' style="width: 120px; height: 25px;">First Name<span class='adminAsterix'> *</span></td>
                                                            <td style="height: 25px">
                                                                <asp:TextBox ID="txtFirstName" runat="server" cssclass='textBox' Width='250px' MaxLength="50"></asp:TextBox></td>
                                                        </tr> 
                                                        
                                                        <tr class="altanateAshBkg">
                                                            <td class='label'>Last Name<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtLastName" runat="server" cssclass='textBox' Width='250px' MaxLength="50"></asp:TextBox></td>
                                                        </tr> 
                                                          
                                                        <tr class="ashBkg">
                                                            <td class='label'>Email<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtEmail" runat="server" cssclass='textBox' Width='400px' MaxLength="100"></asp:TextBox></td>
                                                        </tr>
                                                        
                                                        <tr class="ashBkg">
                                                            <td class='label' style="width: 120px">Login Name<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtLoginName" runat="server" cssclass='textBox' Width='150px' MaxLength="10"></asp:TextBox></td>
                                                        </tr> 
                                                        
                                                        <tr class="altanateAshBkg">
                                                            <td class='label' style="width: 120px">Password<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtPassword" runat="server" cssclass='textBox' Width='150px' MaxLength="10" TextMode="Password"></asp:TextBox></td>
                                                        </tr>
                                                        
                                                        <tr class="ashBkg">
                                                            <td class='label' style="width: 120px">Confirm Password<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtConfirmPassword" runat="server" cssclass='textBox' Width='150px' MaxLength="10" TextMode="Password"></asp:TextBox></td>
                                                        </tr>    
                                                                                                            
                                                        <tr>
                                                        <td></td>
                                                        <td><asp:ImageButton ID="btnSave" ImageUrl="~/Images/btnSave.jpg" runat="server" 
                                                                onclick="btnSave_Click" /> 
                                                            <asp:ImageButton ID="btnCancel" ImageUrl="~/Images/btnCancel.jpg" 
                                                                runat="server" /></td>
                                                        </tr>
                                                    </table>                                        
                                                 </td>
                                                <td style="width:185px;" align="right" valign="top">
                                                    <img alt="" src="../Images/imgUsers.jpg" 
                                                        style="height: 195px; width: 181px; margin-left: 0px;" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    
                                </tr> 
                                
                                <tr>
                                    <td align="left" style="padding-left:5px;">
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true" AllowPaging="true" AutoGenerateColumns="false" ID="dgUsers" runat="server">
                                            <Columns>                                            
                                                 <asp:BoundField  DataField="User_Code" HeaderText="User Code"/>
                                                <asp:BoundField  DataField="First_Name" HeaderText="First Name" />
                                                <asp:BoundField  DataField="Last_Name" HeaderText="Last Name" />
                                                <asp:BoundField  DataField="Email" HeaderText="Email" />
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                                </tr>
                                                                
                            </table>
                        </td>        
                    </tr>
                    
                    <tr>
                        <td style="height:10px">
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
                </table>
             </td> 
           </tr> 
</table> 
</asp:Content>

